<div class="pagination">
	<span><a href="?page=1{{getvars}}" class="first">First</a></span>
    {% if c.has_previous %}
        <a href="?page={{previous}}{{getvars}}" class="prev">Previous</a>	
    {% endif %}
    
    {% if c.has_range_prev %}
	<span class="omit">...</span>
	{% endif %}
	
    {% for i in c.page_range %}
    {% ifequal forloop.counter page %}
    <span class="current page">{{ c.page }}</span>
    {% else %}
    <a href="?page={{ i }}" class="page">{{ i }}</a>
    {% endifequal %}
    {% endfor %}
    <!-- <span>{{page}}</span> -->
    
    {% if c.has_range_next %}
    <span class="omit">...</span>
	{% endif %}
    
    {% if c.has_next %}
        <a href="?page={{c.next}}{{getvars}}" class="next">Next</a>
    {% endif %}
    <span><a href="?page={{c.pages}}{{getvars}}" class="last">Last</a></span>
</div>
